//
//  BaseModel.m
//  
//
//  Created by dlios on 15/10/15.
//
//

#import "BaseModel.h"

@implementation BaseModel

- (instancetype)initWithDictionary:(NSDictionary *)dic
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
   
}


+(instancetype)modelWithDictionary:(NSDictionary *)dic
{
    return [[self alloc]initWithDictionary:dic];
}
@end
